#ifndef MYTHREADFORSUBWIDGET2_H
#define MYTHREADFORSUBWIDGET2_H
#include <QSqlDatabase>
#include <QThread>
class SubWidget2;

class MyThreadForSubwidget2:public QThread
{
public:
    MyThreadForSubwidget2();
    MyThreadForSubwidget2(QSqlDatabase &db);
    ~MyThreadForSubwidget2();
protected:
    void run() override;
private:
    QSqlDatabase m_db;
    SubWidget2 *m_w2;
};

#endif // MYTHREADFORSUBWIDGET2_H
